package com.embedsky.administrator.mycardreader.socket;

/**
 * The interface Client listener.
 */
public interface IClientListener {
    /**
     * On connected.
     *
     * @param ip   the ip
     * @param port the port
     */
    void onConnected(String ip, int port);

    /**
     * On connected fail.
     *
     * @param ip   the ip
     * @param port the port
     */
    void onConnectedFail(String ip, int port);

    /**
     * Parse data.
     *
     * @param bytes the bytes
     * @param ip    the ip
     */
    void parseData(byte[] bytes, String ip);

    /**
     * On server disconnect.
     *
     * @param ip the ip
     */
    void onServerDisconnect(String ip);

    /**
     * On finish.
     */
    void onFinish();
}
